<!DOCTYPE html>
<html class="x-admin-sm">
<head>
  <meta charset="UTF-8">
  <title>{$title}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
  <link rel="stylesheet" href="/static/css/font.css">
  <!--<link rel="stylesheet" href="/static/css/xadmin.css">-->
  <!--<script src="/static/lib/layui/layui.js" charset="utf-8"></script>-->
  <!--<script type="text/javascript" src="/static/js/xadmin.js"></script>-->
  <script type="text/javascript" src="/static/js/jquery.min.js"></script>
  <!--<script type="text/javascript" src="/static/js/jquery.printarea.js"></script>-->
  <script src="http://www.jq22.com/jquery/jquery-migrate-1.2.1.min.js"></script>
  <script language="javascript" src="/static/js/jquery.jqprint-0.3.js"></script>
  <link rel="stylesheet" type="text/css" media="print,screen" href="/static/css/order.css" />

</head>
<style>
  .tou .t{
    width:30%;font-size:12px;
  }
  .tou .t p{
    font-size: 12px;
  }
  .dis-line{
    display: inline-block;
  }
  .dis-line span{
    text-decoration:underline;
    font-size: 12px;
  }
</style>
<body>
<div class="content" >
  <div class="title">
    {$title}
  </div>

  <div class="tou">
    <div class="t" style="font-size:12px;">
      <p>系统单号:{$order.sn}</p>
      <p>业务日期:<?php echo date('Y-m-d H:i:s',time())?></p>
    </div>
    <div class="u" style="font-size:12px;">
      <p>手工单号:{$order.sn}</p>
      <p>入库门店:</p>
    </div>

    <div class="g" style="font-size:12px;">
      <p>业务类型:门店自采入库</p>
      <p>供货商:{$cname}</p>
    </div>

  </div>

  <div class="tb" >
    <table id="tab" style="font-size: 12px;">
      <thead>
      <tr >
        <th class="sw">序号</th>
        <th class="sw">仓库名称</th>
        <th class="sw">品项编码</th>
        <th class="sw">品项名称</th>
        <th class="sw">规格</th>
        <th class="sw">单位</th>
        <th class="sw">数量</th>
        <th class="sw">非税单价</th>
        <th class="sw">非税金额</th>
      </tr>
      </thead>
      <tbody>
      {volist name="goods" id="v"}
      <tr>
        <td>{$key+1}</td>
        <td>{$v.ware}</td>
        <td>{$v.id}</td>
        <td>{$v.name}</td>
        <td>{$v.specs}</td>
        <td>{$v.unit}</td>
        <td>{$v.num}</td>
        <td>{$v.inprice}</td>
        <td>{$v.inprice*$v.num}</td>
      </tr>
      {/volist}
      <tr>
        <td >小计:</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      </tbody>
    </table>

  </div>


  <br>
  <div style="width: 90%;font-size: 16px; margin-left: 1.5%">
    备注 : {$order.des}
  </div>
  <div style="width: 90%;font-size: 16px; margin-left: 1.5%;margin-top: 35px;font-size: 12px;">
    <div class="tou" style="width:100%;">
      <div class="dis-line">
        制单人:<span>&nbsp;&nbsp;&nbsp;{$order.admin_name}&nbsp;</span>
      </div>
      <div class="dis-line">
        制单日期:<span>{$order.addtime|date="Y-m-d H:i:s"}</span>
      </div>
      <div class="dis-line">
        审核人: <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
      </div>
      <div class="dis-line">
        审核日期: <span>{$order.intime|date="Y-m-d H:i:s"}</span>
      </div>
    </div>
    <div class="tou" style="width:100%;margin-top: 5px;font-size: 12px;">
      <div class="dis-line">
        整单合计:<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¥{$zong}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
      </div>
      <div class="dis-line">
        大写:<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;人民币{$daxie}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
      </div>
      <div class="dis-line">
        签名1: <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
      </div>
    </div>
    <div class="tou" style="width:100%;margin-top: 5px; font-size: 12px;">
      <div class="dis-line">
        打印时间:<span> &nbsp;&nbsp;<?php echo date("Y-m-d H:i:s",time()); ?>&nbsp;&nbsp;</span>
      </div>
      <div class="dis-line">
        打印人:<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$admin}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
      </div>
      <div class="dis-line">
        签名2:<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
      </div>
    </div>
  </div>
</div>
<br><br><br><br>
<div class="layui-form-item">
  <button class="layui-btn">打印出库单</button>
</div>
<script>

  $(document).ready(function(){
    $(".layui-btn").click(function(){
      // $(".content").printArea();
      $(".content").jqprint();
    });



  });
</script>

</body>

</html>